package com.genersoft.iot.vmp.gb28181.dao;

import com.genersoft.iot.vmp.gb28181.bean.CommonGBChannel;
import com.genersoft.iot.vmp.gb28181.dao.provider.ChannelProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import javax.naming.Name;
import java.util.List;

@Mapper
@Repository
public interface TestAllChannelManageMapper {

//    @SelectProvider(type = ChannelProvider.class, method = "allChannelList")
    @Select("select name as gbName,device_id as gbDeviceId,manufacturer as gbManufacturer, status as gbStatus," +
            "longitude as gbLongitude, latitude as gbLatitude from wvp_device_channel")
    List<CommonGBChannel> allChannelList();
}
